package com.fc.mall.model;

import java.io.Serializable;
import lombok.Data;

@Data
public class UmsIntegrationConsumeSetting implements Serializable {
    private Long id;

    /**
     * 每一元需要抵扣的积分数量
     *
     * @mbggenerated
     */
    private Integer deductionPerAmount;

    /**
     * 每笔订单最高抵用百分比
     *
     * @mbggenerated
     */
    private Integer maxPercentPerOrder;

    /**
     * 每次使用积分最小单位100
     *
     * @mbggenerated
     */
    private Integer useUnit;

    /**
     * 是否可以和优惠券同用；0->不可以；1->可以
     *
     * @mbggenerated
     */
    private Integer couponStatus;

    /**
     * 下单抵用开启，关闭
     *
     * @mbggenerated
     */
    private Integer useSw;

    /**
     * 满多少元可以用积分
     *
     * @mbggenerated
     */
    private Integer minPerOrder;

    /**
     * 1_全部商品，2_指定分类，3_指定商品，4_指定商品不可用
     *
     * @mbggenerated
     */
    private Integer usableRange;

    /**
     * 指定目标ID
     *
     * @mbggenerated
     */
    private Long usableRangeId;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deductionPerAmount=").append(deductionPerAmount);
        sb.append(", maxPercentPerOrder=").append(maxPercentPerOrder);
        sb.append(", useUnit=").append(useUnit);
        sb.append(", couponStatus=").append(couponStatus);
        sb.append(", useSw=").append(useSw);
        sb.append(", minPerOrder=").append(minPerOrder);
        sb.append(", usableRange=").append(usableRange);
        sb.append(", usableRangeId=").append(usableRangeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}